import javax.swing.JFrame;


public class GUI {
private JFrame graphWindow=new JFrame();
private ViewPanel panel;
public GUI(ReadingDataFromCSV data){
//	String titleList[] = { "NASDAQ", "DJIA", "Nikkei",
//			"S&P500", "DAX", "FTSE" };
//panel=new ViewPanel(data.getStockData(ReadingDataFromCSV.DAX));
	panel=new ViewPanel(data.getStockData());
	graphWindow.setSize(800, 600);
	graphWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	graphWindow.setContentPane(panel);
	graphWindow.repaint();
	graphWindow.setVisible(true);
	graphWindow.setTitle("Graph");

}
}
